package cn.ygh.bbo.framerwork.core;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * base对象
 * @author ygh
 * @date 2018/11/12 13:16
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * 时间格式
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 日期时间格式
     */
    public static final String DAY_FORMAT = "yyyy-MM-dd";

    /**
     * 冗余更多参数
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private Map<String,Object>params;

    /**
     * 数据权限参数
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String dataScope;

    /**
     * 搜索关键词
     */
    @ApiModelProperty(value = "关键词")
    @TableField(exist = false)
    private String keyword;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序方式")
    @TableField(exist = false)
    private String orderValue;

    /**
     * 分组
     */
    @ApiModelProperty(value = "分组方式")
    @TableField(exist = false)
    private String groupValue;

}
